package com.sg.business.model.workevent;

import com.mobnut.db.model.IContext;
import com.sg.business.model.Work;
import com.sg.business.model.WorkEventNoticeRule;

public class WorkStartDelayEvent extends RuleBasedWorkEvent{

	private final int delayInDays;

	public WorkStartDelayEvent(Work work,int delayInDays, IContext context) {
		super(work, context);
		setRule(WorkEventNoticeRule.makeWorkEventNoticeRule(EVENT_START_DELAYED));
		this.delayInDays = delayInDays;
		setParameter("delayInDays", delayInDays);
	}

	public int getDelayInDays() {
		return delayInDays;
	}

}
